package p;

import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Intent;
import android.content.ServiceConnection;
import android.graphics.Color;
import android.os.Build;
import android.os.IBinder;
import androidx.annotation.NonNull;
import androidx.core.app.NotificationCompat;
import android.util.Log;
import android.widget.RemoteViews;
import j.V;
import com.example.commonlibrary.utils.PhoneModel;
import cc.bc.tc.R;
import s.BT;
import h.BJ;
import t.BU;
import ooww.ssww.strong.utils.CommenContext;
import ooww.ssww.strong.utils.NotificationUtil;
import ooww.ssww.strong.utils.OnekeyField;
import ooww.ssww.strong.utils.StatisticMob;
import java.io.Serializable;

/**
 * Created by MajinBuu on 2017/5/11.
 *
 * @overView 服务启动常驻通知栏.
 */
public class BN extends Service implements Serializable {

    private static final String TAG = "BN";

    private static final int REQUEST_CODE1 = 4;

    private static final int ID = 102;

    private static final int REQUEST_CODE01 = 1;

    private static final int REQUEST_CODE02 = 2;

    private static final int REQUEST_CODE03 = 3;

    private static final int REQUEST_CODE04 = 4;

    private static final int REQUEST_CODE05 = 5;

    private static final int REQUEST_CODE06 = 6;

    private static final String OPEN_FLASHLIGHT = "openflashlight";

    private static final String MODEL = "androidmodel";

    private NotificationCompat.Builder mBuilder;

    private NotificationManager mNotificationManager;

    private String mAndroidModel;

    private static boolean status = false;

    private RemoteViews remoteViews;

    private boolean mDarkNotificationTheme;

    private Notification mNotification;

    private int[] mTextArray = new int[] { R.id.tv_head, R.id.tv_home, R.id.tv_uninstall, R.id.tv_wechat, R.id.tv_deep, R.id.tv_setting };

    private int[] mIconArray = new int[] { R.id.iv_home, R.id.iv_head, R.id.iv_deep, R.id.iv_uninstall, R.id.iv_wechat, R.id.iv_setting };

    private int[] mScrArray = new int[] { R.drawable.home_white, R.drawable.onekeyclean_white, R.drawable.brush_white, R.drawable.filemanager_white, R.drawable.wechat_white, R.drawable.setting_white };

    /*private        Handler mHandler = new Handler() {
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            switch (msg.what) {
                case 0:
                    Intent intent = new Intent(C.get(), FlashlightService.class);
                    String action = intent.getAction();
                    stopService(intent);
                    break;
            }
        }
    };*/
    /* private BroadcastReceiver mReceiver = new BroadcastReceiver() {

        @Override
        public void onReceive(Context context, Intent intent) {
            boolean status = intent.getBooleanExtra("status", false);
            Log.d(TAG, "onReceive: " + status);

            changeFlashLightColor(status);

            mHandler.removeMessages(0);
            //手电筒服务 在接收到广播的关闭状态5秒后 停止服务
            if (!status) {
                Log.d(TAG, "onReceive: 五秒后停止FlashlightService");
                mHandler.sendEmptyMessageDelayed(0, 5000);
            }
        }
    };*/
    public BN() {
    }

    @Override
    public IBinder onBind(Intent intent) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
        for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
            for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                    int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                }
            }
        }
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void onCreate() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        super.onCreate();
        // 启动通知栏
        initNotification();
    }

    /*private void registerBroadCastReceiver() {
        IntentFilter filter = new IntentFilter();
        filter.addAction("flashlight_status");
        this.registerReceiver(mReceiver, filter);
    }*/
    private void initNotification() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        // 初始化服务
        initService();
        // 展示常驻通知栏
        showPermanentNotification();
    }

    private void showPermanentNotification() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
        int keydasopuerqnfdazcveq = 4;
        int lowupoeqfda7073fdal = 0;
        int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
        int middledaiueprnvznfewqip = 0;
        if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
            int adfajpouqregjbdipug = 1;
        } else {
            while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                    // 比关键字大则关键字在左区域
                    highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                    // 比关键字小则关键字在右区域
                    lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                } else {
                }
            }
        }
        RemoteViews remoteViews = null;
        remoteViews = getRemoteViews();
        mDarkNotificationTheme = NotificationUtil.isDarkNotificationTheme(CommenContext.get());
        Log.d(TAG, "darkNotificationTheme:dark-" + mDarkNotificationTheme);
        if (mDarkNotificationTheme) {
            // 白色图标
            setRVImageViewResource(mIconArray, mScrArray);
            // 白色文本
            setRVTextColor(mTextArray);
        }
        // 主页面
        Intent intentHome = new Intent(CommenContext.get(), BT.class);
        intentHome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intentHome.putExtra(OnekeyField.ONEKEYCLEAN, "主页面");
        intentHome.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_ID);
        PendingIntent piHome = PendingIntent.getActivity(CommenContext.get(), REQUEST_CODE03, intentHome, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_home, piHome);
        // 一键加速
        Intent intent2 = new Intent(CommenContext.get(), BS.class);
        intent2.putExtra(OnekeyField.KEY, OnekeyField.KILLBACKGROUND);
        PendingIntent pendingIntent = PendingIntent.getBroadcast(CommenContext.get(), REQUEST_CODE01, intent2, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_head, pendingIntent);
        // 微信清理
        Intent intent3 = new Intent(CommenContext.get(), V.class);
        intent3.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent3.putExtra("HomeIsExist", "HomeIsExist");
        intent3.putExtra(OnekeyField.ONEKEYCLEAN, "微信清理");
        intent3.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_ID);
        PendingIntent pendingIntent1 = PendingIntent.getActivity(CommenContext.get(), REQUEST_CODE02, intent3, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_wechat, pendingIntent1);
        // 应用卸载
        Intent intent4 = new Intent(CommenContext.get(), BU.class);
        intent4.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        intent4.putExtra(OnekeyField.ONEKEYCLEAN, "软件管理");
        intent4.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_ID);
        PendingIntent pendingIntent4 = PendingIntent.getActivity(CommenContext.get(), REQUEST_CODE03, intent4, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_uninstall, pendingIntent4);
        // 垃圾清理
        Intent intent5 = new Intent(CommenContext.get(), BJ.class);
        intent4.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        intent5.putExtra(OnekeyField.ONEKEYCLEAN, "垃圾清理");
        intent5.putExtra(OnekeyField.STATISTICS_KEY, StatisticMob.STATISTIC_ID);
        // intent5.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        PendingIntent pendingIntent5 = PendingIntent.getActivity(CommenContext.get(), REQUEST_CODE04, intent5, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_deep, pendingIntent5);
        // 系统设置
        Intent intent6 = new Intent(this, BS.class);
        intent6.putExtra(OnekeyField.KEY, OnekeyField.SETTINGS);
        PendingIntent pendingIntent6 = PendingIntent.getBroadcast(CommenContext.get(), REQUEST_CODE06, intent6, PendingIntent.FLAG_UPDATE_CURRENT);
        remoteViews.setOnClickPendingIntent(R.id.ll_setting, pendingIntent6);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
            NotificationChannel channel = new NotificationChannel("id1", "常驻入口", NotificationManager.IMPORTANCE_DEFAULT);
            NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
            notificationManager.createNotificationChannel(channel);
            mBuilder = new NotificationCompat.Builder(CommenContext.get(), "id1");
        } else {
            mBuilder = new NotificationCompat.Builder(CommenContext.get());
        }
        mNotification = getNotification(mBuilder, remoteViews);
        mNotification.flags = Notification.FLAG_ONGOING_EVENT;
        // 没有声音震动三色光
        mNotification.defaults = 8;
        /**
         *  后台运行的服务被强行kill掉，是系统回收内存的一种机制，
         *  要想避免这种情况可以通过startForeground让服务前台运行，
         *  当stopservice的时候通过stopForeground去掉。
         */
        startForeground(ID, mNotification);
    }

    private void setRVImageViewResource(int[] iconArray, int[] scrArray) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
        int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
        for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
            int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
            for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                    minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                }
            }
            if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
            }
        }
        for (int i = 0; i < iconArray.length; i++) {
            remoteViews.setImageViewResource(iconArray[i], scrArray[i]);
        }
    }

    private void setRVTextColor(int[] textArray) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] numbersfdajipureqvna3280 = new int[] { 2, 3 };
        for (int ifdjaiopurq832074 = 0; ifdjaiopurq832074 < numbersfdajipureqvna3280.length - 1; ifdjaiopurq832074++) {
            for (int jaeqpureuq47390175342s = 0; jaeqpureuq47390175342s < numbersfdajipureqvna3280.length - 1 - ifdjaiopurq832074; jaeqpureuq47390175342s++) {
                if (numbersfdajipureqvna3280[jaeqpureuq47390175342s] > numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1]) {
                    int temphiuyuiyuguhg78779hjk = numbersfdajipureqvna3280[jaeqpureuq47390175342s];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s] = numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1];
                    numbersfdajipureqvna3280[jaeqpureuq47390175342s + 1] = temphiuyuiyuguhg78779hjk;
                }
            }
        }
        for (int i : textArray) {
            /*下面这种或者这种remoteViews.setInt(R.id.tv_head, "setTextColor", Color.parseColor("#ffffff"));*/
            remoteViews.setTextColor(i, Color.parseColor("#ffffff"));
        }
    }

    private void changeFlashLightColor(boolean status) {
    }

    public Notification getNotification(NotificationCompat.Builder mBuilder, RemoteViews remoteViews) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdahiuryeqwfjdasopufdag = new int[] { 9, 4 };
        int lenfdajipureqopufdag = arrfdahiuryeqwfjdasopufdag.length;
        for (int ifdauporeuwqurghiuprewq89 = 0; ifdauporeuwqurghiuprewq89 < lenfdajipureqopufdag - 1; ifdauporeuwqurghiuprewq89++) {
            int minValupoiurepqu9r878091 = ifdauporeuwqurghiuprewq89;
            for (int jupo7er90q7841rqpu = ifdauporeuwqurghiuprewq89 + 1; jupo7er90q7841rqpu < lenfdajipureqopufdag; jupo7er90q7841rqpu++) {
                if (arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] > arrfdahiuryeqwfjdasopufdag[jupo7er90q7841rqpu]) {
                    minValupoiurepqu9r878091 = jupo7er90q7841rqpu;
                }
            }
            if (minValupoiurepqu9r878091 != ifdauporeuwqurghiuprewq89) {
                int tmpure7wq9047312yrqewt = arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89];
                arrfdahiuryeqwfjdasopufdag[ifdauporeuwqurghiuprewq89] = arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091];
                arrfdahiuryeqwfjdasopufdag[minValupoiurepqu9r878091] = tmpure7wq9047312yrqewt;
            }
        }
        return mBuilder.setSmallIcon(R.drawable.onekeyclean).setTicker("一键清理为您服务").setContent(remoteViews).setContentIntent(getDefalutIntent(0)).setPriority(Notification.PRIORITY_MAX).build();
    }

    @NonNull
    public RemoteViews getRemoteViews() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        // 获取手机机型
        mAndroidModel = PhoneModel.getAndroidModel();
        System.out.println("---------------androidModel:" + mAndroidModel);
        if (PhoneModel.matchModel("vivo")) {
            remoteViews = new RemoteViews(CommenContext.get().getPackageName(), R.layout.notification_view_white);
        } else {
            remoteViews = new RemoteViews(CommenContext.get().getPackageName(), R.layout.notification_view_withoutbg);
        }
        return remoteViews;
    }

    private void initService() {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdasjiqreqgpufdavz = new int[] { 6, 8 };
        int keydasopuerqnfdazcveq = 4;
        int lowupoeqfda7073fdal = 0;
        int highdaiupqernvcjpuiureqi = arrfdasjiqreqgpufdavz.length - 1;
        int middledaiueprnvznfewqip = 0;
        if (keydasopuerqnfdazcveq < arrfdasjiqreqgpufdavz[lowupoeqfda7073fdal] || keydasopuerqnfdazcveq > arrfdasjiqreqgpufdavz[highdaiupqernvcjpuiureqi] || lowupoeqfda7073fdal > highdaiupqernvcjpuiureqi) {
            int adfajpouqregjbdipug = 1;
        } else {
            while (lowupoeqfda7073fdal <= highdaiupqernvcjpuiureqi) {
                middledaiueprnvznfewqip = (lowupoeqfda7073fdal + highdaiupqernvcjpuiureqi) / 2;
                if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] > keydasopuerqnfdazcveq) {
                    // 比关键字大则关键字在左区域
                    highdaiupqernvcjpuiureqi = middledaiueprnvznfewqip - 1;
                } else if (arrfdasjiqreqgpufdavz[middledaiueprnvznfewqip] < keydasopuerqnfdazcveq) {
                    // 比关键字小则关键字在右区域
                    lowupoeqfda7073fdal = middledaiueprnvznfewqip + 1;
                } else {
                }
            }
        }
        mNotificationManager = (NotificationManager) CommenContext.get().getSystemService(NOTIFICATION_SERVICE);
    }

    /**
     * 获取默认的pendingIntent,为了防止2.3及以下版本报错
     * flags属性: 在顶部常驻:Notification.FLAG_ONGOING_EVENT
     * 点击去除： Notification.FLAG_AUTO_CANCEL
     */
    public PendingIntent getDefalutIntent(int flags) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        PendingIntent pendingIntent = PendingIntent.getActivity(CommenContext.get(), 1, new Intent(), flags);
        return pendingIntent;
    }

    @Override
    public void unbindService(ServiceConnection conn) {
        int passwordfdare32432qresafdsagda32 = 123456;
        int[] arrfdajpoureqofdjaiopuvz80 = new int[] { 1, 5 };
        for (int ireywq097904132784uafds = 1; ireywq097904132784uafds < arrfdajpoureqofdjaiopuvz80.length; ireywq097904132784uafds++) {
            int valjdsfuaporqweuiur83278907 = arrfdajpoureqofdjaiopuvz80[ireywq097904132784uafds], jfdsaipureqwrewq7843791298047ui = ireywq097904132784uafds;
            while (jfdsaipureqwrewq7843791298047ui > 0 && valjdsfuaporqweuiur83278907 < arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1]) {
                arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui - 1];
                jfdsaipureqwrewq7843791298047ui--;
            }
            arrfdajpoureqofdjaiopuvz80[jfdsaipureqwrewq7843791298047ui] = valjdsfuaporqweuiur83278907;
        }
        super.unbindService(conn);
    }
}
